package com.sfc.spiderweb.entity.po;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/***
 *  @author Darren.Chen(陈延鑫)
 *  @description
 *  @date 2019/6/28
 */
@Data
public class DynamicMessageToUsersReqParam {

    @ApiModelProperty(value = "用户对应工号消息集合")
    private List<UserMessageReqParam> userMessageList;

    @ApiModelProperty(value = "验证信息",required = true)
    @NotBlank(message = "验证消息不能为空")
    private String validToken;

    @ApiModelProperty(value = "模板编号",required = true,example = "0")
    @NotNull(message = "模板编号不能为空")
    private Integer templateId;

    @ApiModelProperty(value = "消息类型",required = true,example = "text")
    @NotBlank(message = "消息类型不能为空")
    private String messageType;

    @ApiModelProperty(value = "系统id",required = true,example = "2")
    @NotNull(message = "系统id不能为空")
    private Integer systemId;

    @ApiModelProperty(value = "标题",required = true,example = "hello")
    private String title;
}
